package com.fqgj.sentry.policy.client;


import com.fqgj.sentry.policy.entity.PcFunctionContextEntity;

/**
 * Created by zwh @yuntu-inc.com
 *
 * @description
 * @create 2017/7/29 0029 上午 11:46
 */
public interface FunContextService {

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    PcFunctionContextEntity save(PcFunctionContextEntity entity);

    /**
     * 更新
     *
     * @param entity
     * @return
     */
    Boolean update(PcFunctionContextEntity entity);


    /**
     * 查询
     *
     * @param functionId
     * @return
     */
    PcFunctionContextEntity findByFunctionId(Long functionId);

    /**
     * 删除
     *
     * @param functionId
     * @return
     */
    Boolean deleteByFunctionId(Long functionId);
}
